import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { TabbarComponent } from './tabbar.component';


const routes: Routes = [
  {path: '', component: TabbarComponent ,
   children: [
    {path: '', redirectTo: 'store', pathMatch: 'full'},
    {path: 'store', loadChildren: () => import('./store/store.module').then(m => m.StoreModule)},
    {path: 'shopcar', loadChildren: () => import('./shopcar/shopcar.module').then(m => m.ShopcarModule)},
    {path: 'user', loadChildren: () => import('./user/user.module').then(m => m.UserModule)}
   ]
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class TabbarRoutingModule { }
